home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-06-09 | 1.2 KB | 56 lines | [TEXT/MPS ] |
- # This script runs a standard set of correctness and code quality tests.
- # This is *not* a comprehensive test suite; however, if the compiler passes
- # all these and can compile itself, it is probably working correctly.
-
- Set CleanUpFirst 1
-
- # Parse arguments.
-
- Loop
- Break If "{#}" == 0
- If "{1}" =~ /-check/
- Else If "{1}" =~ /-asis/
- Set CleanUpFirst 0
- Else If "{1}" =~ /-c/
- Set CompilerName C
- Else If "{1}" =~ /-gc/
- Set CompilerName gC
- Else If "{1}" =~ /-help/
- Echo "TestCompiler [ options ]"
- Echo " -check Display commands without executing them"
- Echo " -help Display this message"
- Echo ""
- Exit 0
- Else
- End If
- Shift 1
- End Loop
-
- If CleanUpFirst
- Delete ≈.o ≈.c.a ≈_c ≈_gc ≈.makeout ≈.rtl
- End If
-
- Echo Including all Mac CIncludes ...
-
- # Run the compiler over all the cinclude files. (should synth this file)
-
- {CompilerName} :allinclude.c
-
- Echo Testing implementation of Apple extensions to C ...
-
- BuildProgram parmpragma_{CompilerName}
- parmpragma_{CompilerName}
-
- # need tests of direct functions
-
- BuildProgram pascal1_{CompilerName}
- pascal1_{CompilerName}
-
- #BuildProgram pascal_{CompilerName}
- #pascal_{CompilerName}
-
- BuildProgram dash-b_{CompilerName}
- dash-b_{CompilerName}
-
-
-